Skip to content

Optimize transcript no-filter search path - #1723

Draft
groupthinking with Copilot wants to merge 2 commits into
mainfrom
copilot/bolt-optimize-interactive-transcript-4719841486477
Draft

Optimize transcript no-filter search path#1723
groupthinking with Copilot wants to merge 2 commits into
mainfrom
copilot/bolt-optimize-interactive-transcript-4719841486477

Conversation

Copilot AI commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Canonical issue

Linked automatically.

Outcome

Transcript filtering now avoids allocation when no search or speaker filter is active, while preserving null/empty-query behavior and one-time query normalization.

if (!search && !speaker) return segments as TranscriptSegment[];

Scope

  • Included:
    • No-filter fast path in filterSegments
    • Regression coverage for preserving original segment identity
  • Explicitly excluded:
    • UI changes
    • Workflow/provenance gate changes
    • Unrelated billing/type-check fixes

Risk

  • Risk level: low
  • Failure mode: filtered transcript list could skip allocation but return stale references only when callers mutate segment arrays unexpectedly
  • Rollback: remove the early return and the matching identity assertion

Verification

Current head: 56c6c06707c41e9e50d39150f09c782cb60e4008

  • Focused tests: npm test --workspace apps/web -- src/lib/__tests__/transcript-search.test.ts
  • Required CI
  • Review threads resolved

Production evidence

Not applicable yet; this is a pure transcript-filter helper change. Preview/runtime evidence should attach to the current head if repository governance requires web deployment proof.

Agent handoff

  • One canonical issue is linked
  • No competing PR implements the same issue
  • Acceptance criteria are satisfied
  • Required checks pass on the current head
  • Human decision is requested only for product, security, irreversible infrastructure, or production approval

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Sep 8, 2026 10:53pm UTC

Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
Copilot AI changed the title [WIP] Optimize transcript search allocation for better performance Optimize transcript no-filter search path Sep 8, 2026
Copilot AI requested a review from groupthinking September 8, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Execution: optimize transcript search allocation (PR #897)

2 participants